import request from '@/utils/request'

export function getOrders(query) {
  return request({
    url: '/distribution/order/getList',
    method: 'post',
    data: query
  })
}

export function getOrder(id) {
  return request({
    url: '/distribution/order/getDetail',
    method: 'post',
    data: id
  })
}

export function saveOrder(formdata) {
  return request({
    url: '/distribution/order/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByOrderID(id) {
  return request({
    url: '/distribution/order/change-status',
    method: 'post',
    data: id
  })
}

export function removeOrderByID(id) {
  return request({
    url: '/distribution/order/remove',
    method: 'post',
    data: id
  })
}
